From: Georges Basile Stavracas Neto Date: Fri, 10 Jul 2020 13:41:09 +0000 (-0300) Subject: workspacesView: Update visibily when gesture drag begins X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~143 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0893789b34419a944e5b44e83ea52766bbb3db97;p=gnome-shell.git workspacesView: Update visibily when gesture drag begins When dragging the workspaces through the swipe gesture, all workspaces must be visible. WorkspacesView's _updateVisibility() method special-cases this and ensures that. However, this method is only called when (1) going to the active workspace, and (2) when the gesture ends. That means, if there is any workspace hidden by the time a gesture starts, it is never shown! Call _updateVisibility() on startTouchGesture() as well. Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969 https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1360 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index b16c13437..a757badbb 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -241,6 +241,8 @@ class WorkspacesView extends WorkspacesViewBase { startTouchGesture() { this._gestureActive = true; + + this._updateVisibility(); } endTouchGesture() {